/**
 * Modal 组件类型定义
 */

import type { BaseComponentProps } from '../../types'

// Modal 组件属性接口
export interface ModalProps extends BaseComponentProps {
  visible?: boolean
  title?: string
  width?: string | number
  closable?: boolean
  maskClosable?: boolean
  destroyOnClose?: boolean
  centered?: boolean
  zIndex?: number
  showFooter?: boolean
  okText?: string
  cancelText?: string
  okLoading?: boolean
}

// Modal 组件事件接口
export interface ModalEmits {
  'update:visible': [visible: boolean]
  ok: []
  cancel: []
  close: []
}